var response = function (id, title) {
    document.getElementsByName('response')[0].value = id;
    document.getElementsByName('title')[0].value = 'Re: ' + title;
};